package com.yonyou.brigade.third_parties.common.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author houyb
 * @since 2020-04-22
 */
@TableName("bri_icon_tenant")
public class BriIconTenant extends Model<BriIconTenant> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 租户
     */
    private String tenant;
    /**
     * 入口key
     */
    @TableField("icon_key")
    private String iconKey;
    /**
     * 是否启用
     */
    private Integer checked;
    /**
     * 时间戳
     */
    private String ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getIconKey() {
        return iconKey;
    }

    public void setIconKey(String iconKey) {
        this.iconKey = iconKey;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public String getTs() {
        return ts;
    }

    public void setTs(String ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String TENANT = "tenant";

    public static final String ICON_KEY = "icon_key";

    public static final String CHECKED = "checked";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriIconTenant{" +
        "id=" + id +
        ", tenant=" + tenant +
        ", iconKey=" + iconKey +
        ", checked=" + checked +
        ", ts=" + ts +
        "}";
    }
}
